import request from '@/utils/request'

export function getMessages() {
    return request({
        url: '/messageList',
        method: 'get',
        headers: {
          isToken: false
        },
    })
}
export function sendMessage(msg) {
    return request({
        url: '/sendMessage',
        method: 'post',
        headers: {
            isToken: false
        },
        data: {'content':msg}
    })
}
export function addMessageConmment(msg){
    return request({
        url:'/comment/addMessageComment',
        method:'post',
        data:{'comment':msg}
    })
}